//
//  AddImageProveCell.m
//  MIDI
//
//  Created by 邵子凡 on 15/11/4.
//  Copyright © 2015年 QXSX. All rights reserved.
//

#import "AddImageProveCell.h"

@interface AddImageProveCell ()


@end

@implementation AddImageProveCell

+(instancetype)cellWithTableView:(UITableView *)tableView{
    
    static NSString *ID = @"AddImageProveCell";
    
    AddImageProveCell  *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    
    if (cell == nil) {
        cell = [[[NSBundle mainBundle]loadNibNamed:@"AddImageProveCell" owner:nil options:nil]firstObject] ;
    }
    
    [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    
    return cell;
}

- (void)awakeFromNib {
    
    //给添加图片按钮增加点击事件
    [self.addImage1 addTarget:self action:@selector(addImagePeoveBtn_click:) forControlEvents:UIControlEventTouchUpInside];
//    self.addImage1.tag = 1;
    
    [self.addImage2 addTarget:self action:@selector(addImagePeoveBtn_click:) forControlEvents:UIControlEventTouchUpInside];
//    self.addImage2.tag = 2;
    
    [self.addImage3 addTarget:self action:@selector(addImagePeoveBtn_click:) forControlEvents:UIControlEventTouchUpInside];
//    self.addImage3.tag = 3;
}

- (void)addImagePeoveBtn_click:(UIButton *)sendre{
    
    if ([self.delegate respondsToSelector:@selector(uploadImagePeove:addImageBtn:)]) {
        [self.delegate uploadImagePeove:self addImageBtn:sendre];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
